#ifndef MY_EXCEPTION_H
#define MY_EXCEPTION_H

#include <exception>
#include <string>

class MyException : public std::exception {
public:
    MyException(const char* str) : Name(str) {}
    virtual const char* what() const throw() { return Name.c_str(); }
    virtual ~MyException() throw() {}
private:
    std::string Name;
};

#endif // MY_EXCEPTION_H
